//
//  TSCMyToast.h
//  Tsc_IOS
//
//  Created by Rio on 15-5-19.
//  Copyright (c) 2015年 idream. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ELCImagePickerController.h"

//// 系统自定义的相片选择器
//typedef void(^BImagePickerControllerDidCancel)(UIImagePickerController *);
//typedef void(^BImagePickerControllerDidFinishPickingMediaWithInfo)(UIImagePickerController *, NSDictionary *);
//
//// 第三方相片选择器（支持多选）
//typedef void(^BELCImagePickerControllerDidCancel)(ELCImagePickerController *);
//typedef void(^BELCImagePickerControllerDidFinishPickingMediaWithInfo)(ELCImagePickerController *, NSArray *);

// 统一的相片选择器（将系统自定义的、第三方的整合起来）
typedef void(^BMyImagePickerControllerDidCancel)(UINavigationController *);
typedef void(^BMyImagePickerControllerDidFinishPickingMediaWithInfo)(UINavigationController *, NSArray *);

typedef BOOL(^BTSCMyUploadPicDialogIsShowPickerDialog)(); // 当点击时，是否显示dialog。默认显示

@interface TSCMyUploadPicDialog : UITextField <UITextFieldDelegate, UINavigationControllerDelegate, UIImagePickerControllerDelegate, ELCImagePickerControllerDelegate>

@property (nonatomic, copy) NSString * title;
@property (nonatomic, strong) UIView * bodyView;
@property (nonatomic, assign) CGFloat textSize;
@property (nonatomic, assign) BOOL isMultiPicker;
@property (nonatomic, assign) NSInteger maxPhotoPickNum;
@property (nonatomic, assign) BOOL hasRightDownTriangleIcon; // 是否添加右侧向下的倒三角。默认：YES
//@property (nonatomic, strong) BImagePickerControllerDidCancel imagePickerControllerDidCancel;
//@property (nonatomic, strong) BImagePickerControllerDidFinishPickingMediaWithInfo imagePickerControllerDidFinishPickingMediaWithInfo;
//@property (nonatomic, strong) BELCImagePickerControllerDidCancel elcImagePickerControllerDidCancel;
//@property (nonatomic, strong) BELCImagePickerControllerDidFinishPickingMediaWithInfo elcImagePickerControllerDidFinshPickingMediaWithInfo;
@property (nonatomic, strong) BMyImagePickerControllerDidCancel myImagePickerControllerDidCancel;
@property (nonatomic, strong) BMyImagePickerControllerDidFinishPickingMediaWithInfo myImagePickerControllerDidFinishPickingMediaWithInfo;
@property (nonatomic, strong) BTSCMyUploadPicDialogIsShowPickerDialog isShowPickerDialog;

// 显示dialog，由点击自身触发
- (void) dismiss; // 关闭dialog，由调用此方法触发

@end
